<?php
$webRoot = $this->app->getWebRoot();
$jsRoot  = $webRoot . 'js/';
?>
<!DOCTYPE html>
<html>
<head lang="cn">
 <?php
 if(isset($title)) echo html::title($title);

 echo html::meta('charset', 'utf-8');
 echo html::meta('viewport', 'width=device-width, initial-scale=1.0');

 css::import($webRoot . 'theme/default/css/jkb.css',$config->version);
 css::import($webRoot . 'theme/default/css/frame.css',$config->version);
 css::import($webRoot . 'theme/default/css/summarize.css',$config->version);
 css::import($webRoot . 'theme/my.css',$config->version);
 
 if(isset($cssload)&&is_array($cssload)){
    foreach($cssload as $val){
	  css::import($webRoot . $val,$config->version);
	}
 }
 
 if(isset($pageCss)) css::internal($pageCss);


 js::import($jsRoot . 'html5shiv.min.js', $config->version, 'lt IE 9');
 js::exportConfigVars();

 echo html::icon($webRoot . 'favicon.ico');

 js::import($jsRoot . 'jquery-1.8.3.min.js', $config->version);
 js::import($jsRoot . 'validator.js', $config->version);
 ?>
</head>
<body>
<?php include dirname(__FILE__) . '/nav.html.php';?>
